package com.appbee.user.client;

import javax.inject.Inject;
import javax.inject.Singleton;

import com.appbee.core.client.modular.IModulRegistry;
import com.appbee.core.client.modular.impl.ActivityModul;
import com.appbee.user.client.presenter.UserListActivity;
import com.google.gwt.inject.client.AsyncProvider;

@Singleton
public class UserListActivityModul extends ActivityModul
{
	private static final String USERLIST = "userlist";
	private final IModulRegistry registry;

	@Inject
	public UserListActivityModul(	IModulRegistry registry,
								AsyncProvider<UserListActivity> aboutProvider)
	{
		this.registry = registry;
		setDefaultActivty(aboutProvider);
	}

	public void register()
	{
		registry.register(USERLIST, this);
	}

	@Override
	public String getName()
	{
		return "Userlist";
	}

	@Override
	public String getId()
	{
		return USERLIST;
	}

}
